package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.ice.IceServerHandler;
import com.csun.cmny.provider.model.domain.DmcCsunBodyGroupBind;
import com.csun.cmny.provider.model.vo.csunbody.BodyGroupBindVo;
import com.csun.cmny.provider.model.vo.csunbody.BodyGroupVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-09-22 15:54
 * @Description:
 */
public interface DmcCsunBodyGroupBindService extends IService<DmcCsunBodyGroupBind> {

    /**
     * query list by id
     *
     * @param id    the id
     *
     * @return  the list.
     */
    List<BodyGroupBindVo> queryListById(Long id);

    /**
     * bind
     *
     * @param dmcCsunBodyGroupBind  the dmc csun body group bind
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int.
     */
    Integer bind(DmcCsunBodyGroupBind dmcCsunBodyGroupBind, LoginAuthDto loginAuthDto);

    /**
     * untied
     *
     * @param dmcCsunBodyGroupBind  the dmc csun body group bind
     *
     * @return  the int.
     */
    Integer untied(DmcCsunBodyGroupBind dmcCsunBodyGroupBind);

    /**
     * the query body group by device no
     *
     * @param bodySensorId  the body sensor id
     *
     * @return  the body group vo
     */
    BodyGroupVo queryBodyGroupByDeviceNo(String bodySensorId);
}
